package org.dev.vlp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.dev.vlp.entity.Word;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.dev.vlp.service.WordService;
import org.dev.vlp.vo.EstimationWordVo;

import java.util.List;

/**
* @author 86184
* @description 针对表【vlp_vi_word】的数据库操作Mapper
* @createDate 2023-01-15 21:33:27
* @Entity org.dev.vlp.entity.ViWord
*/
@Mapper
public interface WordMapper extends BaseMapper<Word> {

    Word getWord(int id,String wordTable);

    List<EstimationWordVo> getRandomEstimationWords(Integer bookId, Integer count,String wordTable);

    List<EstimationWordVo> getGameWords(Integer count,String wordTable);

    // 分页搜索单词
    List<Word> searchWord(Long bookId, int start, int size, String keyWord,String wordTable);

    // 统计检索到的单词数量
    Long searchWordCount(Long bookId, String keyWord,String wordTable);

    List<Word> getBookWordByPage(Long bookId, int start, int size,String wordTable);

    // 统计词书单词数量
    Long getBookWordByPageCount(Long bookId,String wordTable);
}




